package com.zyh.server.utils;

import java.util.UUID;

/**
 * @Author: zyh
 * @Date: 2024-11-13-9:37
 * @Description UUID工具类，生成用户唯一标识
 */
public class UUIDUtil {
	/**
	 * 生成随机的uuid并去掉-
	 * @return
	 */
	public static String getUuid() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}

	public static void main(String[] args) {
		System.out.println(UUIDUtil.getUuid());
	}
}
